package com.demo.salary.transactionimplementation;

import com.demo.salary.abstracttransactions.ChangeMethodTransaction;
import com.demo.salary.payrollimplementation.DirectMethod;
import com.demo.salary.payrolldomain.PayMethod;

public class ChangeDirectTransaction extends ChangeMethodTransaction {

    String bank;
    String account;

    public ChangeDirectTransaction(int empId,String bank, String account) {
        super(empId);
        this.bank = bank;
        this.account = account;
    }

    @Override
    PayMethod getMethod() {
        return new DirectMethod(bank,account);
    }
}
